package com.practice.controller;

import com.practice.utils.R;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: pengshihao
 * @Description:
 * @Date: created in 16:54 2019/9/16
 * @Modified By:
 */

@RestController
@RequestMapping("/v1")
public class HelloController {


    @RequestMapping("/hello")
    public R index(@RequestParam String name){
        return R.ok("hello "+name+"，this is first messge!");
    }
}
